package com.ccp.dev.workflow.bpmconst;

/**
 * ClassDescribe:
 * 流程常量类
 * @author :wangcheng
 * Date: 2019-05-13
 */
public class BpmConst {
    public static final String PRE_ORG_ID = "preOrgId";
    public static final String START_ORG_ID = "startOrgId";
    public static final String START_POS_ID = "startPosId";
    public static final String START_JOB_ID = "startJobId";
    public static final String StartUser = "startUser";
    public static final String PrevUser = "prevUser";
    public static final String StartEvent = "start";
    public static final String EndEvent = "end";
    public static final String CreateEvent = "create";
    public static final String CompleteEvent = "complete";
    public static final String AssignmentEvent = "assignment";
    public static final String PROCESS_EXT_VARNAME = "outPassVars";
    public static final String PROCESS_INNER_VARNAME = "innerPassVars";
    public static final String FLOW_RUN_SUBJECT = "subject_";
    public static final String FLOW_SERIALNO = "serialNo_";
    public static final String FLOW_INFORM_TYPE = "informType";
    public static final String IS_EXTERNAL_CALL = "isExtCall";
    /**
     * 开始节点脚本；任务创建后置脚本
     */
    public static final Integer START_SCRIPT = 1;
    /**
     * 结束节点脚本；任务结束后置脚本
     */
    public static final Integer END_SCRIPT = 2;
    public static final Integer ScriptNodeScript = 3;
    /**
     * 
     */
    public static final Integer ASSIGN_SCRIPT = 4;
    /**
     * 任务创建前置脚本
     */
    public static final Integer START_BEFORE_SCRIPT = 5;
    public static final Integer EndBeforeScript = 6;
    public static final String NODE_APPROVAL_STATUS = "approvalStatus";
    public static final String NODE_APPROVAL_CONTENT = "approvalContent";
    public static final Integer TASK_BACK = 1;
    public static final Integer TASK_BACK_TOSTART = 2;
    public static final Integer TASK_BACK_TODESTIDS = 4;

    public static final String SCRIPT_TASK = "ScriptTask";

    //========================================表单类型==============================================//
    /**
     * 没有设置表单
     */
    public static final Short FORM_TYPE_NULL = Short.valueOf((short)-1);
    /**
     * 在线表单
     */
    public static final Short FORM_TYPE_ONLINE = Short.valueOf((short)0);
    /**
     * URL表单
     */
    public static final Short FORM_TYPE_URL = Short.valueOf((short)1);

    public static final String FORM_PK_REGEX = "\\{pk\\}";
    public static final String FLOW_BUSINESSKEY = "businessKey";
    public static final String FLOW_RUNID = "flowRunId";
    public static final String FLOW_PARENT_PROCDEFID = "parentProcDefId";
    public static final String FLOW_MAIN_PROCDEFID = "mainProcDefId";
    public static final String SIGN_USERIDS = "signUsers";
    public static final String SUBPRO_MULTI_USERIDS = "subAssignIds";
    public static final String SUBPRO_EXT_MULTI_USERIDS = "subExtAssignIds";
    public static final String MESSAGE_TYPE_MAIL = "1";
    public static final String MESSAGE_TYPE_SMS = "2";
    public static final String MESSAGE_TYPE_INNER = "3";
    public static final String EMPTY_USER = "";
    public static String PREVIEW_FORMUSER = "__formUserId__";
    public static String PREVIEW_FORMORG = "__formOrgId__";
    public static String PREVIEW_FORMPOS = "__formPosId__";
    public static String PREVIEW_FORMROLE = "__formRoleId__";
    public static String LOCAL_DATASOURCE = "LOCAL";
    public static String EXECUTION_ID_ = "executionId";
    public static final String BPM_DEF = "bpm_definition";
    public static final String BPM_DEFKEY = "flowKey";
    public static final String OPINION_FIELD = "opinionField";
    public static final String OPINION_SUPPORTHTML = "optionHtml";
    public static final String APPROVAL_OPERATION_AGREE = "agree";
    public static final String APPROVAL_OPERATION_REJECT= "reject";

    public static final String NODE_USER_ASSIGNEE = "nodeUserAssignee";

}
